package com.myself.ejb;

import java.util.Locale;

import javax.ejb.Local;
import javax.ejb.Stateless;
import com.myself.ejb.Hello;

@Local(Hello.class)
@Stateless
public  class HelloBean implements Hello {
	@Override
	public String sayHello(Locale locale) {
		if(Locale.FRENCH.equals(locale)){
			return "salut";
		}else if(Locale.ENGLISH.equals(locale)){
			return "hello";
		}else{
			return "salem!"; //arabic !
		}
	}

}
